import request from '/@/utils/request';

export const BaseApiUrl = ''

// 日志
export const getLogs = (params: any) => {
    return request(
        {
            url: '/api/Monitor/get',
            method: 'get',
           params,
        }
    )
};
export const getRequestApiinfoByWeek = (params: any) => {
    return request(
        {
            url: '/api/Monitor/GetRequestApiinfoByWeek',
            method: 'get',
           params,
        }
    )
};
export const getAccessApiByDate = (params: any) => {
    return request(
        {
            url: '/api/Monitor/GetAccessApiByDate',
            method: 'get',
           params,
        }
    )
};
export const getAccessApiByHour = (params: any) => {
    return request(
        {
            url: '/api/Monitor/GetAccessApiByHour',
            method: 'get',
           params,
        }
    )
};

export const getAccessLogs = (params: any) => {
    return request(
        {
            url: '/api/Monitor/GetAccessLogs',
            method: 'get',
           params,
        }
    )
};
export const getActiveUsers = (params: any) => {
    return request(
        {
            url: '/api/Monitor/GetActiveUsers',
            method: 'get',
           params,
        }
    )
};
